import random
from my_package import my_tools,my_games

# 生成一个随机小数，[0, 1)
a = random.random()
print(a)

# 生成一个随机整数，范围[1, 100]
a = random.randint(1, 100)
print(a)

print(random.choice([1, 2, 3, 4, 5, 6]))
print(random.choice('hello'))

# 生成一个随机字母组成的列表
# 查看ASCII码
print(ord('A'))
print(ord('Z'))
a = []
for i in range(10):
    # a.append(my_tools.random_str(5, False))
    a.append(my_tools.random_str2(5))
print(list(a))


list1 = [1, 2, 3, 4, 5, 6]
random.shuffle(list1)
print(list1)


my_games.stone_scissors_paper()